import { request } from "../request"

export const login = (data) => {
  return request({
    url: 'api/loginAdmin',
    method: 'POST',
    data
  })
}
// 获取菜单列表
export const menus = (params) => {
  return request({
    url: 'api/menus',
    method: 'get',
    params
  })
}
// 获取小程序列表
export const appList = (params) => {
  return request({
    url: 'api/appList',
    method: 'get',
    params
  })
}
// 上传图片
export const uploadAvatar = (data) => {
  return request({
    url: 'api/uploadAvatar',
    method: 'POST',
    data
  })
}
// 获取用户详情
export const getUserInfo = (data) => {
  return request({
    url: 'api/getUserInfo',
    method: 'POST',
    data
  })
}
